@ECHO OFF

SET GACUTIL="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe"

ECHO Copy dll and debug symbols to iis
xcopy /y "..\bin\debug\Com.FastSearch.*" "C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin"
xcopy /y "..\bin\debug\Com.FastSearch.*.pdb" "C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin"
xcopy /y "..\bin\debug\Esp*.*" "C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin"


REM Echo Installing dll in GAC to be able to develop and debug easier
REM %GACUTIL% -if C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin\Com.FastSearch.SharePoint.WebControls.ESPSearchWebParts.dll

Echo Recycling application pool for "SharePoint - 80" (instead of restarting iis)
Echo Add additional pools if needed.
cscript.exe c:\windows\system32\iisapp.vbs /a "SharePoint - 80" /r